home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 46
/
Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso
/
-in_the_mag-
/
reader_requests
/
gmplaygui
/
gmplaygui
< prev
next >
Wrap
AmigaDOS Script File
|
1997-06-14
|
2KB
|
131 lines
.key co
; $VER: GMPlayGUI 1.5 (970614)
; By Anders Persson
failat 21
if <co$z> EQ r
skip elon
endif
if exists gui
setenv gmstart nu
run >nil: selector gui/welcome.sel
set first=yes
echo >StartFromShell "cd *"`cd`*"*Nrun >nil: execute GMPlayGUI"
protect StartFromShell +s
which >nil: requestfile
if warn
unsetenv gmstart
selector gui/noreq
quit
endif
assign >nil: gm: exists
if not warn
assign gmd: gm:
endif
if exists env:gmdir
assign gmd: "$gmdir"
endif
assign >nil: gmd: exists
if warn
unsetenv gmstart
selector gui/nogm
quit
endif
version >nil: gmd:gmplay 1 3
if warn
unsetenv gmstart
selector gui/nogm
quit
endif
if exists env:gm
unsetenv gmstart
selector gui/running
quit
endif
gmd:gmplay >nil: alloc.mid
if warn
unsetenv gmstart
selector gui/noaudio
quit
endif
if "`which selector`" NOT EQ "RES selector"
resident selector pure add
setenv gmres Yes
else
version >nil: selector 5 5
if warn
setenv oldsel `version selector full`
resident >nil: selector remove
resident selector pure add
selector gui/oldsel
endif
endif
resident c:eval pure add
cd gui
copy >nil: settings env:
unsetenv gmstart
endif
setenv gm ""
run >nil: selector loading
setenv gmpid <$$>
setenv gmpl 0
setenv gmplb 0
setenv gmant 0
setenv gmch 0
setenv gmdisp "By Boray"
setenv short "Nothing Yet"
setenv sfreq "Mega-"
run >nil: selector menu.sel
if "$gmi" EQ ";"
run >nil: selector info.sel
endif
lab elon
if not exists "$midi"
unsetenv gm
unsetenv gmpid
setenv midi SYS:
selector newfiles
quit
endif
list >t:gm lformat "execute gp *"%f%n*"" "$midi" pat (#?.mid|#?.midi|mid.#?|midi.#?)
if 1 GT `list t:gm lformat %l` VAL
unsetenv gm
unsetenv gmpid
selector nofiles
quit
endif
/unsort >env:gmant t:gm
setenv gmant `eval $gmant`
setenv gmpl 0
setenv gmplb 0
setenv gmch 0
execute t:gm
execute /GMPlayGUI r